package org.dev.hi.item;

import android.widget.ImageView;

import androidx.recyclerview.widget.RecyclerView;

import org.dev.hi.R;
import org.dev.hi.hiui.item.HiDataItem;
import org.jetbrains.annotations.NotNull;

public
/**
 * Author WenPing 
 * CreateTime 2021/4/22.
 * Description:
 */

class TopTabDataItem extends HiDataItem<ItemData, RecyclerView.ViewHolder> {

    public TopTabDataItem(ItemData data) {
        super(data);
    }

    @Override
    public int getItemLayoutRes() {
        return R.layout.layout_list_item_tab;
    }

    @Override
    public void onBindData(@NotNull RecyclerView.ViewHolder vh, int position) {
        ImageView imageView = vh.itemView.findViewById(R.id.item_image);
        imageView.setImageResource(R.drawable.ic_launcher_background);
    }
}
